SinglePoseDetectionModel
class SinglePoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : SinglePoseDetectionModelBase<Bitmap> , InferenceModel, CameraXCompatibleModel
Content copied to clipboard
SinglePoseDetectionModel is an ultra-fast and accurate model that detects 17 keypoints and 18 basic edges of a body.
It internally uses ONNXModels.PoseDetection.MoveNetSinglePoseLighting or ONNXModels.PoseDetection.MoveNetSinglePoseThunder under the hood to make predictions.
Parameters
internalModel
model used to make predictions
Constructors
SinglePoseDetectionModel
Link copied to clipboard
Constructs the pose detection model from a model bytes.
SinglePoseDetectionModel
Link copied to clipboard
fun SinglePoseDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String? = null)
Content copied to clipboard
Functions
convert
Link copied to clipboard
Converts raw model output to the result.
detectPose
Link copied to clipboard
Detects a pose for the given image.
initializeWith
Link copied to clipboard
open override fun initializeWith(vararg executionProviders: ExecutionProvider)
Content copied to clipboard
Initialize the model with the specified executions providers.
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
summary
Link copied to clipboard
Properties
inputDimensions
Link copied to clipboard
internalModel
Link copied to clipboard
modelKindDescription
Link copied to clipboard
preprocessing
Link copied to clipboard
open override val preprocessing: Operation<Bitmap, Pair<FloatArray, TensorShape>>
Content copied to clipboard
targetRotation
Link copied to clipboard